package com.agrm.api.client;

import com.agrm.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("cart-service")
public interface CartClient {

    /**
     * 删除购物车
     * @param ids ids
     * @return 删除的 数量
     */
    @DeleteMapping("/api/v1/cart/deleteByIds")
    public ResponseResult deleteCartByIds(@RequestParam("cardIds") List<Integer> ids);

}
